#include<stdio.h>
int main()
{
	int i=1,j=0;
	float r[100],sum;
	char l[100];
	scanf("%f",&r[0]);
	scanf("%c",&l[0]);
	sum=r[0];
	while(scanf("%f",&r[i])!=EOF)
	{

		switch(l[j]) {
			case 42:
				sum*=r[i];
				break;
			case 43:
				sum+=r[i];
				break;
			case 45:
				sum-=r[i];
				break;
			case 47:
				sum/=r[i];
				break;

		}
		scanf("%c",&l[i]);
		i++;
                j++;
	}
	printf("%.3f",sum);
	return 0;

}
